<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/axios-0.18.0.js"></script>
</head>
<body>
    <input type="button" value="获取数据" onclick="getData()">
    <input type="button" value="删除数据" onclick="postData()">
</body>
<script>
    function getData() {
        axios({
            method:"get",
            url:"https://mock.apifox.cn/m1/3128855-0-default/emp/list"
        }).then(result=>{
            console.log(result.data);
        })
    }
    function postData(){
        axios({
            method:"post",
            url:"https://mock.apifox.cn/m1/3128855-0-default/emp/deleteById",
            data:"id=1"
        }).then(result=>{
            console.log(result.data);
        })
    }
</script>
</html>